<%--
    Document   : menuSHA
    Created on : 13/11/2010, 03:01:01 PM
    Author     : Patricia
--%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

<center>
    <div style="clear: both;">&nbsp;</div>
    <img alt="" src="Modulo3/images/SHA.jpg" height="300" width="600"/>
    <div style="clear: both;">&nbsp;</div>
</center>
<script type="text/javascript">
    $(function(){
<%
    String user = (String) session.getAttribute("user");
    if (user == null) {%>
        // No hay un usuario conectado
        //alert("user (must be null): <%--out.print(user); --%>");
        $('#userInfo').html("");
        $('.userAction').html('Login').attr('id', 'login');
<% } else {%>
    // Hay un usuario conectado
    //alert("connected user: <%-- out.print(user); --%>");
    $('#userInfo').html('<% out.print(user + "      |  ");%>');
    $('.userAction').html('Logout').attr('id', 'logout');
<% }%>
    });
</script>